package com.fmy.response.specs;


public enum ResponseEnum implements IEnum {

    OK("200", "OK"),

    OK_ZERO("0", "OK"),

    BUSINESS_FAIL("40001", "业务逻辑不符合要求"),

    LOGIN_ERROR("40002", "登录失败相关"),

    SQL_ERROR("40003", "SQL执行失败"),

    REQUEST_PARAM_ERROR("40004", "前端参数不符合要求"),

    SERVER_ERROR("40005", "服务器异常");

    String code;
    String desc;

    ResponseEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }


    public String getCode() {
        return this.code;
    }

    public String getDesc() {
        return this.desc;
    }
}
